package com.my.api.response.group;

import java.io.Serializable;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

/**
 * 群消息
 * @author ch
 *
 */
public class GroupMsgResponse implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -7472320960354681684L;

	/**
	 * 要回复的内容
	 */
	private String reply;
	
	/**
	 * 是否要在回复开头 at 发送者（自动添加），默认为 true，发送者是匿名用户时无效
	 */
	private Boolean at_sender;
	
	/**
	 * 把发送者踢出群组（需要登录号权限足够），不拒绝此人后续加群请求，默认为 false，发送者是匿名用户时无效
	 */
	private Boolean kick;
	
	/**
	 * 把发送者禁言 30 分钟（需要登录号权限足够），对匿名用户也有效，不支持指定禁言时长（如需指定，请调用相应 API），默认为 false
	 */
	private Boolean ban;
	
	

	public GroupMsgResponse() {
		super();
	}



	public GroupMsgResponse(String reply, Boolean at_sender, Boolean kick, Boolean ban) {
		super();
		this.reply = reply;
		this.at_sender = at_sender;
		this.kick = kick;
		this.ban = ban;
	}



	public String getReply() {
		return reply;
	}



	public void setReply(String reply) {
		this.reply = reply;
	}



	public Boolean getAt_sender() {
		return at_sender;
	}



	public void setAt_sender(Boolean at_sender) {
		this.at_sender = at_sender;
	}



	public Boolean getKick() {
		return kick;
	}



	public void setKick(Boolean kick) {
		this.kick = kick;
	}



	public Boolean getBan() {
		return ban;
	}



	public void setBan(Boolean ban) {
		this.ban = ban;
	}
	
	
	@Override
	public String toString() {
		return JSON.toJSONString(this, SerializerFeature.UseISO8601DateFormat);
	}

}
